public class StringDemo9 {
    public static void main(String[] args) {
        String s = "abcd";

        final char[] array = {'a','b','c'};
        array[0] = 'g';

        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
}
